module.exports = (mongoose) => {
  const { Schema, model } = mongoose

  const ShoppingSchema = new Schema({
    userNo: {
      type: String,
    },
    productId: {
      type: String,
    },
    productName: {
      type: String,
    },
    productPicture: {
      type: Array,
    },
    productPrice: {
      type: Number,
    },
    number: {
      type: Number,
    },
    isSelect: {
      type: Boolean,
    },
  })

  return model('Shopping', ShoppingSchema)
}
